<?php

/**
 * 定价
 */
Route::get('entity/pm/prices', ['as'=> 'entity.pm.prices.index', 'uses' => 'Entity\Pm\PriceController@index']);
Route::post('entity/pm/prices', ['as'=> 'entity.pm.prices.store', 'uses' => 'Entity\Pm\PriceController@store']);
Route::get('entity/pm/prices/create', ['as'=> 'entity.pm.prices.create', 'uses' => 'Entity\Pm\PriceController@create']);
Route::put('entity/pm/prices/{prices}', ['as'=> 'entity.pm.prices.update', 'uses' => 'Entity\Pm\PriceController@update']);
Route::patch('entity/pm/prices/{prices}', ['as'=> 'entity.pm.prices.update', 'uses' => 'Entity\Pm\PriceController@update']);
Route::delete('entity/pm/prices/{prices}', ['as'=> 'entity.pm.prices.destroy', 'uses' => 'Entity\Pm\PriceController@destroy']);
Route::get('entity/pm/prices/{prices}', ['as'=> 'entity.pm.prices.show', 'uses' => 'Entity\Pm\PriceController@show']);
Route::get('entity/pm/prices/{prices}/edit', ['as'=> 'entity.pm.prices.edit', 'uses' => 'Entity\Pm\PriceController@edit']);

/**
 * 定价-媒资编辑
 */
// 编辑媒资界面
Route::get('entity/pm/prices/{prices}/edit/asset', ['as'=> 'entity.pm.prices.edit_asset', 'uses' => 'Entity\Pm\PriceController@editAsset']);
// 媒资数据
Route::post('entity/pm/prices/asset/data', ['as'=> 'entity.pm.prices.data', 'uses' => 'Entity\Pm\PriceController@vassetiData']);
// 已选的媒资数据
Route::post('entity/pm/prices/asset/selected', ['as'=> 'entity.pm.prices.selected', 'uses' => 'Entity\Pm\PriceController@selectedVasset']);
// 添加单个媒资|添加多个媒资
Route::post('entity/pm/prices/asset/add', ['as'=> 'entity.pm.prices.add_asset', 'uses' => 'Entity\Pm\PriceController@addVasseti']);
// 删除单个媒资|删除多个媒资
Route::post('entity/pm/prices/asset/delete', ['as'=> 'entity.pm.prices.deltete_asset', 'uses' => 'Entity\Pm\PriceController@deleteVasseti']);

/**
 * 定价-直播媒资编辑
 */
// 编辑媒资界面
Route::get('entity/pm/prices/{prices}/edit/vchan', ['as'=> 'entity.pm.prices.edit_vchan', 'uses' => 'Entity\Pm\PriceController@editVchan']);
// 媒资数据
Route::post('entity/pm/prices/vchan/data', ['as'=> 'entity.pm.prices.vchan_data', 'uses' => 'Entity\Pm\PriceController@vchanData']);
// 已选的媒资数据
Route::post('entity/pm/prices/vchan/selected', ['as'=> 'entity.pm.prices.selected_vchan', 'uses' => 'Entity\Pm\PriceController@selectedVchan']);
// 添加单个媒资|添加多个媒资
Route::post('entity/pm/prices/vchan/add', ['as'=> 'entity.pm.prices.add_vchan', 'uses' => 'Entity\Pm\PriceController@addVchan']);
// 删除单个媒资|删除多个媒资
Route::post('entity/pm/prices/vchan/delete', ['as'=> 'entity.pm.prices.deltete_vchan', 'uses' => 'Entity\Pm\PriceController@deleteVchan']);

/**
 * 定价-产品包、计费周期编辑
 */
Route::get('entity/pm/prices/{prices}/edit_pmtag', ['as'=> 'entity.pm.prices.edit_pmtag', 'uses' => 'Entity\Pm\PriceController@editPmtag']);
// 更新产品包、计费周期
Route::post('entity/pm/prices/update_pmtag/{price}', ['as'=> 'entity.pm.prices.update_pmtag', 'uses' => 'Entity\Pm\PriceController@updatePmtag']);
Route::put('entity/pm/prices/update_pmtag/{price}', ['as'=> 'entity.pm.prices.update_pmtag', 'uses' => 'Entity\Pm\PriceController@updatePmtag']);
Route::patch('entity/pm/prices/update_pmtag/{price}', ['as'=> 'entity.pm.prices.update_pmtag', 'uses' => 'Entity\Pm\PriceController@updatePmtag']);

/**
 * 定价-产品包、计费周期编辑
 */
// 全部上线
Route::get('entity/pm/prices/all_up/view', [
    'as'=> 'entity.pm.prices.all_up', 
    'uses' => 'Entity\Pm\PriceController@allUp'
]);
// 全部下线
Route::get('entity/pm/prices/all_down/view', [
    'as'=> 'entity.pm.prices.all_down', 
    'uses' => 'Entity\Pm\PriceController@allDown'
]);
// 上线发布
Route::get('entity/pm/prices/publish/view', [
    'as'=> 'entity.pm.prices.publish', 
    'uses' => 'Entity\Pm\PriceController@publish'
]);
// 下线发布
Route::get('entity/pm/prices/publish_down/view', [
    'as'=> 'entity.pm.prices.publish_down', 
    'uses' => 'Entity\Pm\PriceController@publishDown'
]);
// 单个,批量上线
Route::post('entity/pm/prices/up/view', [
    'as'=> 'entity.pm.prices.up', 
    'uses' => 'Entity\Pm\PriceController@batchModerate'
]);
// 单个,批量下线
Route::post('entity/pm/prices/down/view', [
    'as'=> 'entity.pm.prices.down', 
    'uses' => 'Entity\Pm\PriceController@batchModerate'
]);
// 单个,批量在售
Route::post('entity/pm/prices/in_sale/view', [
    'as'=> 'entity.pm.prices.in_sale', 
    'uses' => 'Entity\Pm\PriceController@batchModerate'
]);
// 单个,批量停售
Route::post('entity/pm/prices/stop_sale/view', [
    'as'=> 'entity.pm.prices.stop_sale', 
    'uses' => 'Entity\Pm\PriceController@batchModerate'
]);
// 单个,批量上线发布
Route::post('entity/pm/prices/publish_one/view', [
    'as'=> 'entity.pm.prices.publish_one', 
    'uses' => 'Entity\Pm\PriceController@batchModerate'
]);
// 单个,批量下线发布
Route::post('entity/pm/prices/publish_down_one/view', [
    'as'=> 'entity.pm.prices.publish_down_one', 
    'uses' => 'Entity\Pm\PriceController@batchModerate'
]);
// 查询进度
Route::get('entity/pm/prices/progress/view', [
    'as'=> 'entity.pm.prices.progress', 
    'uses' => 'Entity\Pm\PriceController@queryProgress'
]);
